package demo;

import com.service.UserService;
import com.service.impl.UserServiceImol;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserController {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserServiceImol userService = (UserServiceImol) applicationContext.getBean("userService");
        userService.save();

    }
}
